package com.dycx.food.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dycx.food.dto.OrderCreateDTO;
import com.dycx.food.dto.OrderDTO;
import com.dycx.food.dto.OrderGoodsDTO;
import com.dycx.food.entity.OrderDO;
import com.dycx.food.vo.OrderVO;

public interface OrderFoodService extends IService<OrderDO> {

    /**
     * 提交订单
     */
    String createOrder(OrderCreateDTO orderCreateDto);

    /**
     * 分页
     */
    Page<OrderVO> getPage(OrderDTO orderDto);

    /**
     * 根据订单号查询订单信息
     */
    OrderVO getOrderDetailByOrderNo(String orderNo, Boolean queryGoodsList, Boolean queryUser);

    OrderVO getOrderDetailByOrderNo(String orderNo);

    /**
     * 取消订单
     */
    Boolean cancelOrder(String orderNo);

    /**
     * 完成订单
     */
    Boolean completeOrder(String orderNo);

    Boolean updateServiceRemark(OrderDTO orderDTO);

    Boolean orderGoodsStatusEnd(Integer orderGoodsId);

    Boolean orderGoodsStatusComplete(Integer orderGoodsId);
}
